@extends('admin.common.app')
@section('css')
    <link rel="stylesheet" href="/admin/css/pagination.css">
@endsection
@section('cont')
    <section class="Hui-article-box">
        <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
            <span class="c-gray en">&gt;</span>
            成绩管理
            <span class="c-gray en">&gt;</span>
            导出成绩 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
                <i class="Hui-iconfont">&#xe68f;</i>
            </a>
        </nav>
        <div class="Hui-article">
            <article class="cl pd-20">
                <form action="" method="get" class="text-c"> 搜索：
                    <input type="text" class="input-text" style="width:250px" placeholder="输入考试名称" id="test_name" name="test_name">
                    <input type="text" class="input-text" style="width:250px" placeholder="输入班级名称" id="class_name" name="class_name">
                    <button type="submit" class="btn btn-success" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜管理员</button>
                </form>
                <div class="cl pd-5 bg-1 bk-gray mt-20" >
                    <span class="l">
                        <form action="" method="post" >
                            @csrf
                           <button type="submit" class="btn btn-primary radius">
                               <i class="Hui-iconfont">&#xe600;</i>
                               导出考试成绩
                           </button>
                        </form>
                    </span>
                </div>
                @include('admin.common.msg')
                <table class="table table-border table-bordered table-bg">
                    <thead>
                    <tr class="text-c">
                        <th >
                            <input type="checkbox" name="" value="">
                        </th>
                        <th >ID</th>
                        <th>考试名称</th>
                        <th>班级名称</th>
                        <th>姓名</th>
                        <th>学号</th>
                        <th>成绩《分》</th>
                    </tr>
                    </thead>
                    <tbody>
                    @foreach($data as $item)
                        <tr class="text-c">
                            <td>{{$item->id}}</td>
                            <td>{{$item->examinfo->test_name}}</td>
                            <td>{{$item->examinfo->class_name}}</td>
                            <td>{{$item->student->name}}</td>
                            <td>{{$item->student->student_code}}</td>
                            <td>{{$item->score}}</td>
                        </tr>
                    @endforeach
                    </tbody>
                </table>
            </article>
        </div>
    </section>
@endsection
